
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>强制下线</title>
<style>
html,body,div,h1,*{margin:0;padding:0;}
body{
	background-color:#fefefe;
	color:#333
}
.box{
	width:580px;
	margin:0 auto;
}
h1{
	font-size:20px;
	text-align:center; 
	background:url('/images/error.png') no-repeat top center; 
	padding-top:160px;
	margin-top:30%;
	font-weight:normal;
}

</style>
</head>

<body>
<div class="box">
<h1>您的账号于 <?= date('Y-m-d H:i:s',$userinfo['update_time']) ?>，在IP:<?= $userinfo['ip'] ?>登录。<br>您已经被强制下线，<span id="time">5</span>秒后返回登录界面。</h1>
</div>
</body>
</html>

<script>
    var time=document.querySelector('#time');
    var index=5;
	setInterval(function(){
		index--;
		time.innerText=index;
	    if(index<=0){
	    window.location.href = '/login/index';	
	    }

	}, 1000);
	
</script>

